#ifndef _BMP280_H_
#define _BMP280_H_

struct bmp280_dat
{
    unsigned short dig_T1;
    short dig_T2;
    short dig_T3;
    unsigned short dig_P1;
    short dig_P2;
    short dig_P3;
    short dig_P4;
    short dig_P5;
    short dig_P6;
    short dig_P7;
    short dig_P8;
    short dig_P9;
    int adc_T;
    int adc_P;
};

#define BMP280_MAGIC 'b'
#define BMP280_GET _IOR(BMP280_MAGIC, 12, struct bmp280_dat)

#endif